package zl.osimall.common.service;

import com.github.pagehelper.PageInfo;
import zl.osimall.common.bean.User;
import zl.osimall.common.exception.SteduException;

public interface UserService {

    public User login(String username , String password) throws SteduException;

    public Boolean register(User user) throws SteduException;

    public User update(User user , String oldPassword) throws SteduException;

    public User update(User user);

    public User updatePayPassword(User user , String newPayPassword) throws SteduException;

    User selectById(Integer id) throws SteduException;

    User selectByUsername(String username)throws SteduException;

    PageInfo<User> selectByLike(User user , Integer pageNum, Integer pageSize);
}
